<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link th:href="@{/bootsrap/bootstrap.css}" rel="stylesheet">
    <link th:href="@{/css/mystyle.css}" rel="stylesheet">
    <script th:src="@{/jquery/jquery-1.11.3.min.js}"></script>
    <script th:src="@{/jquery/bootstrap.min.js}"></script>

</head>
<body>
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <a class="navbar-brand" style="margin-left: 100px;font-size: 35px;" href="#">樱花动漫</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->

        <form class="navbar-form navbar-left">
            <div class="form-group">
                <input type="text" style="width: 550px; margin-left: 100px;" class="form-control" placeholder="Search">
            </div>
            <button type="submit" class="btn btn-default">动漫搜索</button>
        </form>
        <ul class="nav navbar-nav navbar-right">
            <li class="dropdown">

                <a href="#" style="margin-right: 100px;" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                    <span class="glyphicon glyphicon-user"></span>用户信息</a>

            </li>
        </ul>
    </div>
    <!-- /.navbar-collapse -->
    </div>
    <!-- /.container-fluid -->
</nav>
<div class="collapse navbar-collapse">
    <ul class="nav navbar-nav" style="margin-left: 100px;">
        <li>
            <a href="#">首页<span class="sr-only">(current)</span></a>
        </li>
        <li>
            <a href="#">国产动漫电影<span class="sr-only">(current)</span></a>
        </li>
        <li>
            <a href="#">日本动漫电影</a>
        </li>
        <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">美国动漫电影 </a>

        </li>
    </ul>
</div>
<div id="myCarousel" class="carousel slide">
    <!-- 轮播（Carousel）指标 -->
    <ol class="carousel-indicators">
        <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
        <li data-target="#myCarousel" data-slide-to="1"></li>

    </ol>
    <!-- 轮播（Carousel）项目 -->
    <div class="carousel-inner" id="setHeight">
        <div class="item active">
            <ul class="nav navbar-nav">
                <li>
                    <a href="#"><img th:src="@{/img/1.jpg}" src="img/1.jpg" alt="First slide" style="margin-left: 190px;"></a>
                </li>
                <li>
                    <a href="#"><img th:src="@{/img/2.jpg}" src="img/2.jpg" alt="First slide"></a>
                </li>
            </ul>
            <div class="carousel-caption">标题 1</div>
        </div>

        <div class="item">
            <ul class="nav navbar-nav">
                <li>
                    <a href="#"><img th:src="@{/img/2.jpg}" src="img/3.jpg" alt="First slide" style="margin-left: 190px;"></a>
                </li>
                <li>
                    <a href="#"><img th:src="@{/img/3.jpg}" src="img/2.jpg" alt="First slide"></a>
                </li>
            </ul>
        </div>
    </div>
    <!-- 轮播（Carousel）导航 -->
    <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
    </a>
</div>
<hr noshade=true style="width: 1380px; height: 2px; color: deepskyblue;"/>
<div id="product" style="padding-top:0px;margin-left: 100px;">

    <h2 style="color: pink;">动漫电影</h2>
    <ul class="nav navbar-nav" th:each="view:${viewList.list}">
        <li>
            <a href="#" style="margin-right: 30px;" th:href="${view.viewUrl}">
                <img id="hov" th:alt="${view.viewName}" th:src="${view.imgUrl}" src="http://p.xiaomingming.org/201832312172974251.jpg" style="width: 200px; height: 220px;" />
            </a>
            <p>
                <a th:text="${view.viewName}" th:href="${view.viewUrl}"></a>
            </p>
        </li>
    </ul>
</div>
<div class="numbers" style="margin-left: 460px;">
    <ul class="pagination">
        <p>当前 <span th:text="${pageInfo.pageNum}"></span> 页,总 <span th:text="${pageInfo.pages}"></span> 页,共 <span th:text="${pageInfo.total}"></span> 条记录</p>

        <li><a th:href="@{/}">首页</a></li>
        <li><a th:href="@{/(p=${pageInfo.hasPreviousPage}?${pageInfo.prePage}:1)}">&laquo;上一页</a></li>
        <li><a th:href="@{/(p=${pageInfo.hasNextPage}?${pageInfo.nextPage}:${pageInfo.pages})}">&laquo;下一页</a></li>
        <li><a th:href="@{/(p=${pageInfo.pages})}">尾页</a></li>
    </ul>
</div>

<!--//遍历用法
<table>
    <thead>
    <tr>
        <th>序号</th>
        <th>用户名</th>
        <th>密码</th>
        <th>用户昵称</th>
    </tr>
    <tr th:each="user:${userlist}">
        <td th:text="${user.id}"></td>
        <td th:text="${user.username}"></td>
        <td th:text="${user.password}"></td>
        <td th:text="${user.petname}"></td>
    </tr>
    </thead>
</table>-->



</body>
</html>